//package com.jiangnan.controller;
//
//import com.github.tocrhz.mqtt.publisher.MqttPublisher;
//import org.springframework.stereotype.Component;
//
//@Component
//public class MqttPublishHandler {
//
//    private final MqttPublisher publisher;
//
//    public MqttPublishHandler(MqttPublisher publisher) {
//        this.publisher = publisher;
//    }
//
//    public void sendTest(){
//        publisher.send("test/send", "test message, default QOS is 0.");
//        publisher.send("test/send", "Specify QOS as 1.", 1);
//        publisher.client().send("test/send", "Specify QOS as 2.", 2, false);
//        publisher.client("multi_client_1").send("test/send", "test message, default QOS is 0.");
//    }
//
//}
